package com.oj.auth.entity;

import com.oj.api.auth.domain.ForgetInfo;
import com.oj.common.data.BaseEntity;
import lombok.*;

import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;

/**
 * 忘记密码实体
 * Created by hu on 2018/5/11.
 */
@Entity(name = "AUTH_FORGET")
@Table(indexes = {
        @Index(name = "auth_idx_code_forget", columnList = "code")
})
@Getter
@Setter
@NoArgsConstructor
@ToString
public class ForgetEntity extends BaseEntity<ForgetInfo> {

    @Override
    protected ForgetInfo createInfo() {
        return new ForgetInfo();
    }
}
